/* $Id: test_cpp_ioe.cpp 12 2010-09-24 13:15:17Z olexiy.palinkash@gmail.com $ */

#include <stdio.h>
#include <iostream>
#include <string>

using namespace std;

char s[10000];

int main()
{
	while (!feof(stdin))
	{
		gets(s);
		if (!s[0])
			break;
		cout<<"OUT "<<string(s)<<endl;
		cerr<<"ERR "<<string(s)<<endl;
		s[0] = 0;
	}
}

